<?php
//session_destroy(); /////   removes any old sesson data for this domain       /var/lib/php/session
session_unset();

if ($_POST['username']) {

//print_r($_POST);

	if ($_POST['username'] == "admin" && $_POST['password'] == "abalone") {
		
	session_start();
	  header("Cache-control: private");
	  $_SESSION['username'] = $_POST['username'];
	  
	  
	  header("location: index.php");
	exit;
		
	} else {
		$msg = "Sorry, login incorrect.";
		
		}



}
	
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>CJLY ADMINISTRATION</title>
<link href="../../css/style.css" rel="stylesheet" type="text/css" />
</head>
<body bgcolor="#eeeeee">

<table width="750" height="60" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td colspan="4" class="index_table_hed"><div align="center">CJLY ADMINISTRATION Login</div></td>
  </tr>

</table>
<p>
<div>

</div></p>
<p><?=$msg?></p>
<p>&nbsp; </p>
<table id="list1" class="scroll" cellpadding="0" cellspacing="0">
<tr><form action="login.php" method="post">
<td>Username:<input name="username" type="text" /></td></tr>
<tr><td>Password:<input name="password" type="password" /><br />
<input name="" type="submit" value="Submit" /></td></tr>
</form>
</table>
</body>
</html>

